@import '~antd/lib/style/themes/default.less';

.header {
  height: 64px;
  padding: 0 10px 0 0;
  background: @layout-trigger-background;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  //position: relative;
  //position: fixed;
  color: @white;

}

:global {
  .ant-layout {
    min-height: 100vh;
    overflow-x: hidden;
  }
}



.logo {
  float: left;
  // width: 150px;
  height: 31px;
  margin: 16px 6vw 16px 0;
  // background: rgba(255, 255, 255, 0.2);
  display: flex;

  &__img {
    float: left;
    margin-top: 5.5px;
    margin-left: 18px;
  }

  &__text {
    color: white;
    margin-left: 10px;
    font-weight: 700;
    font-size: 20px;
    // height: 31px;
    float: left;
    line-height: 31px;
  }
}

.menu {
  :global(.anticon) {
    margin-right: 2px;
  }

  :global(.ant-dropdown-menu-item) {
    width: 160px;
  }
}

i.trigger {
  font-size: 20px;
  line-height: 64px;
  //cursor: pointer;
  transition: all 0.3s, padding 0s;
  padding: 0 24px;

  &:hover {
    background: @primary-color;
  }
}

.right {
  float: right;
  height: 64px;
  padding: 0 10px 0 0;
  background: @layout-header-background;

  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  position: relative;
  //position: fixed;
  color: @white;
  .name {
    color: white;
    font-size: 14px;
    padding: 2px 5px;
  }

  .action {
    //cursor: pointer;
    padding: 0 10px;
    display: inline-block;
    transition: all 0.3s;
    height: 100%;

    > i {
      font-size: 16px;
      vertical-align: middle;
      color: @text-color;
    }

    &:hover,
    &:global(.ant-popover-open) {
      /**
 鼠标经过背景
  */
      background: @primary-10;
    }
  }

  .search {
    padding: 0;
    margin: 0 12px;

    &:hover {
      background: transparent;
    }
  }

  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, 0.85);
      vertical-align: middle;
    }
  }
}





//.desktop {
//  color: white;
//  //font-weight: bold;
//  font-size: 16px;
//  color: @primary-color;
//  padding: 2px 5px;
//}
//@media only screen and (max-width: @screen-md) {
//  .header {
//    :global(.ant-divider-vertical) {
//      vertical-align: unset;
//    }
//
//    .name {
//      display: none;
//    }
//
//    i.trigger {
//      padding: 0 12px;
//    }
//
//    .logo {
//      padding-right: 12px;
//      position: relative;
//    }
//
//    .right {
//      position: absolute;
//      right: 12px;
//      top: 0;
//      background: #fff;
//
//      .account {
//        .avatar {
//          margin-right: 0;
//        }
//      }
//    }
//  }
//}
